import { Router, Route /*, Link */ } from 'react-router-dom'
import "./App.css"
import {history} from './utils/history'
import Login from "./pages/Login"
import Layout from "./pages/Layout"
import {AuthRoute} from  "./components/AhthRoute"
const App=()=>{
    return (
    <Router history={history}>
        <div className="app">
        
            <Route path="/login" component={Login}></Route>
            <AuthRoute path="/home" component={Layout}></AuthRoute>
        </div>
    </Router>
    )
}
export default App